package com.sgq.vue.service.resource.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sgq.vue.dao.resource.JsonMapWeatherMapper;
import com.sgq.vue.entity.resource.JsonMapWeather;
import com.sgq.vue.service.resource.JsonMapWeatherService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: 83778
 * @date: 2023-12-29 23:11
 * @desc:
 */
@Service
public class JsonMapWeatherServiceImpl extends ServiceImpl<JsonMapWeatherMapper, JsonMapWeather> implements JsonMapWeatherService {
    @Override
    public List<String> getAllFields() {
        return null;
    }

    @Override
    public JsonMapWeather findMappingByWeatherApiId(Long weatherApiId) {
        LambdaQueryWrapper<JsonMapWeather> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(JsonMapWeather::getWeatherApiId,weatherApiId);
        JsonMapWeather jsonMapWeather = this.baseMapper.selectOne(queryWrapper);
        return jsonMapWeather;
    }
}
